
INPUT_PATH = arg[1]
if not arg[2] then
    CURRENT_PATH = INPUT_PATH:sub(1, -2)
else
    CURRENT_PATH = arg[2]:sub(1, -2)
end

package.path = ('%s\\?.lua;'):format(CURRENT_PATH) .. package.path
package.cpath = ('%s\\?.dll;'):format(CURRENT_PATH) .. package.cpath

package.path = ('%s\\bin\\?.lua;'):format(CURRENT_PATH) .. package.path
package.cpath = ('%s\\bin\\?.dll;'):format(CURRENT_PATH) .. package.cpath

require 'script.main'